
package com.example.demo.service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.mapper.SheetMapper;
import com.example.demo.pojo.Link_1;
import com.example.demo.pojo.Sheet;
import com.example.demo.service.SheetService;

@Service
public class SheetServiceImpl implements SheetService{
	@Autowired
	private SheetMapper sheetmapper;
	@Override
	public List<Sheet> getList() {
		
		return sheetmapper.getList();
	}
	
	@Override
	public List<Sheet> getList1() {
		// TODO Auto-generated method stub
		return sheetmapper.getList1();
	}
	@Override
	public List<Sheet> getList2() {
		// TODO Auto-generated method stub
		return sheetmapper.getList2();
	}
	
	@Override
	public List<Sheet> getList3() {
		// TODO Auto-generated method stub
		return sheetmapper.getList3();
	}
	@Override
	public List<Sheet> getList4() {
		// TODO Auto-generated method stub
		return sheetmapper.getList4();
	}
	@Override
	public List<Sheet> getGedanList() {
		// TODO Auto-generated method stub
		return sheetmapper.getGedanList();
	}
	@Override
	public boolean deleteSheet(Link_1 link) {
		// TODO Auto-generated method stub
				try {
					
				sheetmapper.deleteSheet(link);
				return true;
				}
				catch(Exception e) 
				{
					e.printStackTrace();
			return false;
				}
	}

	@Override
	public List<Sheet> sheetList() {
		// TODO Auto-generated method stub
		return sheetmapper.sheetList();
	}
	


	@Override
	public List<Sheet> getListDetail(int sheet_id) {
		// TODO Auto-generated method stub
		return sheetmapper.getListDetail(sheet_id);
	}

	@Override
	public List<Sheet> searchSheetList(String sheet_name, String labal) {
		// TODO Auto-generated method stub
		return sheetmapper.searchSheetList(sheet_name, labal);
	}

	@Override
	public int addSheet(Sheet sheet) {
		// TODO Auto-generated method stub
		return sheetmapper.addSheet(sheet);
	}

	
}
